package com.xbao.model;

import java.util.ArrayList;
import java.util.List;

public class NotifySettingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public NotifySettingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrgidIsNull() {
            addCriterion("orgid is null");
            return (Criteria) this;
        }

        public Criteria andOrgidIsNotNull() {
            addCriterion("orgid is not null");
            return (Criteria) this;
        }

        public Criteria andOrgidEqualTo(Long value) {
            addCriterion("orgid =", value, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidNotEqualTo(Long value) {
            addCriterion("orgid <>", value, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidGreaterThan(Long value) {
            addCriterion("orgid >", value, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidGreaterThanOrEqualTo(Long value) {
            addCriterion("orgid >=", value, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidLessThan(Long value) {
            addCriterion("orgid <", value, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidLessThanOrEqualTo(Long value) {
            addCriterion("orgid <=", value, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidIn(List<Long> values) {
            addCriterion("orgid in", values, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidNotIn(List<Long> values) {
            addCriterion("orgid not in", values, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidBetween(Long value1, Long value2) {
            addCriterion("orgid between", value1, value2, "orgid");
            return (Criteria) this;
        }

        public Criteria andOrgidNotBetween(Long value1, Long value2) {
            addCriterion("orgid not between", value1, value2, "orgid");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Long value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Long value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Long value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Long value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Long value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Long value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Long> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Long> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Long value1, Long value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Long value1, Long value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Long value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Long value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Long value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Long value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Long value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Long value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Long> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Long> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Long value1, Long value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Long value1, Long value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andLinesetIsNull() {
            addCriterion("lineset is null");
            return (Criteria) this;
        }

        public Criteria andLinesetIsNotNull() {
            addCriterion("lineset is not null");
            return (Criteria) this;
        }

        public Criteria andLinesetEqualTo(Integer value) {
            addCriterion("lineset =", value, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetNotEqualTo(Integer value) {
            addCriterion("lineset <>", value, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetGreaterThan(Integer value) {
            addCriterion("lineset >", value, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetGreaterThanOrEqualTo(Integer value) {
            addCriterion("lineset >=", value, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetLessThan(Integer value) {
            addCriterion("lineset <", value, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetLessThanOrEqualTo(Integer value) {
            addCriterion("lineset <=", value, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetIn(List<Integer> values) {
            addCriterion("lineset in", values, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetNotIn(List<Integer> values) {
            addCriterion("lineset not in", values, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetBetween(Integer value1, Integer value2) {
            addCriterion("lineset between", value1, value2, "lineset");
            return (Criteria) this;
        }

        public Criteria andLinesetNotBetween(Integer value1, Integer value2) {
            addCriterion("lineset not between", value1, value2, "lineset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetIsNull() {
            addCriterion("endrecordset is null");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetIsNotNull() {
            addCriterion("endrecordset is not null");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetEqualTo(Integer value) {
            addCriterion("endrecordset =", value, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetNotEqualTo(Integer value) {
            addCriterion("endrecordset <>", value, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetGreaterThan(Integer value) {
            addCriterion("endrecordset >", value, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetGreaterThanOrEqualTo(Integer value) {
            addCriterion("endrecordset >=", value, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetLessThan(Integer value) {
            addCriterion("endrecordset <", value, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetLessThanOrEqualTo(Integer value) {
            addCriterion("endrecordset <=", value, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetIn(List<Integer> values) {
            addCriterion("endrecordset in", values, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetNotIn(List<Integer> values) {
            addCriterion("endrecordset not in", values, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetBetween(Integer value1, Integer value2) {
            addCriterion("endrecordset between", value1, value2, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andEndrecordsetNotBetween(Integer value1, Integer value2) {
            addCriterion("endrecordset not between", value1, value2, "endrecordset");
            return (Criteria) this;
        }

        public Criteria andLeavesetIsNull() {
            addCriterion("leaveset is null");
            return (Criteria) this;
        }

        public Criteria andLeavesetIsNotNull() {
            addCriterion("leaveset is not null");
            return (Criteria) this;
        }

        public Criteria andLeavesetEqualTo(Integer value) {
            addCriterion("leaveset =", value, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetNotEqualTo(Integer value) {
            addCriterion("leaveset <>", value, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetGreaterThan(Integer value) {
            addCriterion("leaveset >", value, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetGreaterThanOrEqualTo(Integer value) {
            addCriterion("leaveset >=", value, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetLessThan(Integer value) {
            addCriterion("leaveset <", value, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetLessThanOrEqualTo(Integer value) {
            addCriterion("leaveset <=", value, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetIn(List<Integer> values) {
            addCriterion("leaveset in", values, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetNotIn(List<Integer> values) {
            addCriterion("leaveset not in", values, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetBetween(Integer value1, Integer value2) {
            addCriterion("leaveset between", value1, value2, "leaveset");
            return (Criteria) this;
        }

        public Criteria andLeavesetNotBetween(Integer value1, Integer value2) {
            addCriterion("leaveset not between", value1, value2, "leaveset");
            return (Criteria) this;
        }

        public Criteria andSubsetIsNull() {
            addCriterion("subset is null");
            return (Criteria) this;
        }

        public Criteria andSubsetIsNotNull() {
            addCriterion("subset is not null");
            return (Criteria) this;
        }

        public Criteria andSubsetEqualTo(Integer value) {
            addCriterion("subset =", value, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetNotEqualTo(Integer value) {
            addCriterion("subset <>", value, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetGreaterThan(Integer value) {
            addCriterion("subset >", value, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetGreaterThanOrEqualTo(Integer value) {
            addCriterion("subset >=", value, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetLessThan(Integer value) {
            addCriterion("subset <", value, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetLessThanOrEqualTo(Integer value) {
            addCriterion("subset <=", value, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetIn(List<Integer> values) {
            addCriterion("subset in", values, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetNotIn(List<Integer> values) {
            addCriterion("subset not in", values, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetBetween(Integer value1, Integer value2) {
            addCriterion("subset between", value1, value2, "subset");
            return (Criteria) this;
        }

        public Criteria andSubsetNotBetween(Integer value1, Integer value2) {
            addCriterion("subset not between", value1, value2, "subset");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}